﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.QuestionCategoryViewModels>" %>
<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<div class="bor_cor">
	<div class="bar_red" style="text-align:center">
	    <%=ViewData["Title"] %>
	</div>
    <div class="search_right box-blue">
        <ul>
            <% if (Model.Categories != null && Model.Categories.Count() > 0)
               {
                   foreach (var c in Model.Categories)
                   {
                       var css = c.ID == Model.CategoryID ? "act" : string.Empty;
                    %>
                <li><a href="/question/index/<%=c.ID %>" class="<%=css %>"><%=Html.Encode(c.Name) %></a></li>
            <%}
               }%>
        </ul>
    </div>
</div>    
<div class="clear"></div>